fetcher: Explicitly join thread if it's not self
authorColin Walters <walters@verbum.org>
Sun, 24 Jul 2016 19:11:17 +0000 (15:11 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 28 Jul 2016 10:10:17 +0000 (10:10 +0000)
commitba21023d6cd28dca6377b8bf425fc5fa489f5fe7
tree7eaec7440faa1d1dfe273df8e5eaaadc6c88657c
parent544365f834eecc4138001be02bbc10064a537685
fetcher: Explicitly join thread if it's not self

This fixes a valgrind leak; see [this StackOverflow thread](http://stackoverflow.com/questions/17642433/why-pthread-causes-a-memory-leak).

Closes: #410
Approved by: giuseppe
src/libostree/ostree-fetcher.c